passing 2d array to function in c